package cn.pomelo.signalconsumer.controller;

import cn.pomelo.signalinterface.DemoService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Service
public class IndexController {
    @DubboReference(check = false)
    DemoService demoService;

    @RequestMapping("/get")
    public String index() {
        System.out.println("test");
        return demoService.sayHello("hello");
    }
}
